package com.cmsr.springclond.fac;

import java.util.HashMap;
import java.util.Map;

public class PayTypeFactory {
    public static Map<String,PayFactory> payTypeMap=new HashMap<>();

    static{
        payTypeMap.put("1",new PayFactoryByBalance());
        payTypeMap.put("2",new PayFactoryByHuabei());
        payTypeMap.put("3",new PayFactoryByYuEBAO());
    }

    public static PayFactory getPayType(String payType){
        return payTypeMap.get(payType);
    }
}
